package com.starlink.controller.wechat;

import com.starlink.common.WebResponse;
import com.starlink.common.annotation.WebAccess;
import com.starlink.model.request.DepositPriceSetRequest;
import com.starlink.model.vo.DepositPriceSetVO;
import com.starlink.service.DepositPriceSetService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @author zhanghong
 */
@RestController
@RequestMapping("/wechat/set")
@Api(value = "【小程序端】押金金额设置模块", tags = {"【小程序端】押金金额设置模块"})
public class WechatDepositPriceSetController {

    @Autowired
    private DepositPriceSetService depositPriceSetService;

    @WebAccess(login = true)
    @ApiOperation("查询")
    @PostMapping("/selectOne")
    public WebResponse<DepositPriceSetVO> selectOne() {
        return WebResponse.build(depositPriceSetService.selectOne());
    }
}
